import { EntityBasis } from 'src/common/database/EntityBasis';
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';

@Entity('ziliao')
export class Ziliao extends EntityBasis {
  /**主键唯一id */
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ length: 255 })
  @Index()
  title: string; // 资料标题

  @Column({ type: 'text', nullable: true })
  description: string; // 资料描述

  @Column()
  fileUrl: string; // 文件存储地址
}
